﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using bdtheque.data.dataaccess;

namespace bdtheque.data.interfaces
{
    public interface IUnitOfWork : IDisposable
    {
        void AddRepository<T>(Repository<T> repository) where T : class;
        Repository<T> GetRepository<T>() where T : class;
        void Save();
        void Save(bool detectChanges);
    }
}
